package edu.friday.service;

import edu.friday.common.result.TableDataInfo;
import edu.friday.model.SysRoleEntity;
import edu.friday.model.vo.SysRoleVo;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Set;

/**
 * 角色业务层接口
 */
public interface SysRoleService {

    TableDataInfo selectRoleList(SysRoleEntity user, Pageable page);

    String checkRoleNameUnique(String roleName);

    boolean insertRole(SysRoleVo roleVo);

    List<SysRoleEntity> selectRoleAll();

    List<Long> selectRoleListByUserId(Long userId);

    SysRoleEntity selectRoleById(Long roleId);

    boolean updateRole(SysRoleVo roleVo);

    Set<String> selectRolePermissionByUserId(Long userId);
}
